/*
 * @Description: 系统设置API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2024-05-13 17:53:58
 */
import http from '@/utils/http/axios'

export function getPaySetting(params) {
  return http.request({
    url: '/system/pay_setting',
    method: 'GET',
    params
  })
}
export function getTransferCodeList(params) {
  return http.request({
    url: '/system/transfer_code_list',
    method: 'GET',
    params
  })
}
export function getServerIpList(params) {
  return http.request({
    url: '/system/server_ip_list',
    method: 'GET',
    params
  })
}
export function addTransferCode(params) {
  return http.request(
    {
      url: '/system/add_transfer_code',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getFpInfo(params) {
  return http.request({
    url: '/system/fp_setting',
    method: 'GET',
    params
  })
}
export function getRoleList(params) {
  return http.request({
    url: '/system/getRoleList',
    method: 'GET',
    params
  })
}
export function getOrderList(params) {
  return http.request({
    url: '/system/order_list',
    method: 'GET',
    params
  })
}
export function delSignFailLogBatch(params) {
  return http.request(
    {
      url: '/system/del_sign_log_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editFpInfo(params) {
  return http.request(
    {
      url: '/system/fp_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getSignFailLog(params) {
  return http.request({
    url: '/system/sign_fail_log',
    method: 'GET',
    params
  })
}
export function delLogAll(params) {
  return http.request(
    {
      url: '/system/del_sign_log_all',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delIpItem(params) {
  return http.request(
    {
      url: '/system/delIpItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getDevVersion(params) {
  return http.request({
    url: '/system/getDevVersion',
    method: 'GET',
    params
  })
}
export function getAllVersion(params) {
  return http.request({
    url: '/system/getAllVersion',
    method: 'GET',
    params
  })
}
export function getVersionList(params) {
  return http.request({
    url: '/system/getVersionList',
    method: 'GET',
    params
  })
}
export function doVersionPay(params) {
  return http.request(
    {
      url: '/system/doVersionPay',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editPaySetting(params) {
  return http.request(
    {
      url: '/system/pay_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editIpItem(params) {
  return http.request(
    {
      url: '/system/editIpItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getSmsCodeContract(params) {
  return http.request(
    {
      url: '/common/getSmsCodeContract',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editWifiSetting(params) {
  return http.request(
    {
      url: '/system/wifi_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getSmsCode(params) {
  return http.request(
    {
      url: '/common/getSmsCode',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}

export function getSmsSetting(params) {
  return http.request({
    url: '/system/sms_setting',
    method: 'GET',
    params
  })
}

export function editSmsSetting(params) {
  return http.request(
    {
      url: '/system/sms_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getSysSetting(params) {
  return http.request({
    url: '/system/sys_setting',
    method: 'GET',
    params
  })
}

export function editSysSetting(params) {
  return http.request(
    {
      url: '/system/sys_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}

export function getOssSetting(params) {
  return http.request({
    url: '/system/oss_setting',
    method: 'GET',
    params
  })
}

export function editOssSetting(params) {
  return http.request(
    {
      url: '/system/oss_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getEmailSetting(params) {
  return http.request({
    url: '/system/email_setting',
    method: 'GET',
    params
  })
}

export function editEmailSetting(params) {
  return http.request(
    {
      url: '/system/email_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function testEmailSetting(params) {
  return http.request(
    {
      url: '/system/email_test',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
